public class Test {
    public static void main(String args[]) {
        int index = 1;
        int foo[] = new int[3];
        int bar = foo[index];
        int baz = bar + index;
        System.out.println("baz:"+baz);
    }
}
